package org.xiaov.codeautocreator.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.xiaov.codeautocreator.entity.ColumnEntity;
import org.xiaov.codeautocreator.entity.TableEntity;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 描述：数据库接口
 * </p>
 *
 * @author xiaovcloud
 * @since 2021/9/5 18:00
 */
public interface AutoCodeMapper {

    /**
     * 查询所有的表
     *
     * @param page
     * @param tableName
     * @return
     */
    List<TableEntity> queryList(@Param("page") Page<TableEntity> page,
                                @Param("tableName") String tableName);

    /**
     * 根据表名查询表数据
     * @param tableName
     * @return
     */
    TableEntity queryTable(String tableName);

    /**
     * 查询列数据
     * @param tableName
     * @return
     */
    List<ColumnEntity> queryColumns(String tableName);

}
